from django.db import models


# Create your models here.
class MuseumName(models.Model):
    id = models.AutoField(verbose_name='博物馆id', primary_key=True)
    province = models.CharField(verbose_name='博物馆省份', max_length=64, null=False)
    name = models.CharField(verbose_name='博物馆名称', max_length=64, null=False)
    grade = models.CharField(verbose_name='博物馆等级', max_length=64, null=False)
    quality = models.CharField(verbose_name='博物馆性质', max_length=64, null=False)
    free = models.CharField(verbose_name='是否免费', max_length=64, null=False)


class MuseumInfo(models.Model):
    id = models.AutoField(verbose_name='博物馆id', primary_key=True)
    name = models.CharField(verbose_name='名称', max_length=64, null=False)
    info = models.CharField(verbose_name='简介', max_length=500, null=False)
    character = models.CharField(verbose_name='性质', max_length=200, null=False)
    address = models.CharField(verbose_name='地址', max_length=200, null=False)
    web_address = models.CharField(verbose_name='网址', max_length=100, null=False)
    open_time = models.CharField(verbose_name='开放时间', max_length=200, null=False)
    phone = models.CharField(verbose_name='联系电话', max_length=64, null=False)
    province = models.CharField(verbose_name='省', max_length=10, null=False)
    city = models.CharField(verbose_name='市', max_length=10, null=False)
    area = models.CharField(verbose_name='县/区', max_length=10, null=False)
    media = models.CharField(verbose_name='新媒体账号', max_length=200, null=False)
    appointment = models.CharField(verbose_name='预约参观信息', max_length=200, null=False)
    exhibition = models.CharField(verbose_name='主要展览简介', max_length=500, null=False)
    imag = models.CharField(verbose_name="图片", max_length=100, null=True)


class AntiqueInfo(models.Model):
    id = models.AutoField(verbose_name='文物id', primary_key=True)
    desc = models.CharField(verbose_name='所在博物馆', max_length=64, null=False)
    name = models.CharField(verbose_name='名称', max_length=64, null=False)
    summary = models.CharField(verbose_name='简介',max_length=500, null=False)
    img = models.CharField(verbose_name='图片链接',max_length=200, null=False)